package cn.codeforfun.gitee.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;

/**
 * @author wangbin
 */
@Data
@RequiredArgsConstructor
public class GiteeToken {
    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("token_type")
    private String tokenType;
    @JsonProperty("expires_in")
    private Integer expiresIn;
    @JsonProperty("refresh_token")
    private String refreshToken;
    @JsonProperty("scope")
    private String scope;
    @JsonProperty("created_at")
    private Integer createdAt;

    public boolean isExpired() {
        return false;
    }
}
